﻿// See https://aka.ms/new-console-template for more information

var w = System.DateTime.Now.DayOfWeek;



var before = System.DateTime.Now.AddDays(-(int)w);
var begin = System.DateTime.Now.AddDays((7 - 1) - (int)w);
Console.WriteLine( $"前={before}");
Console.WriteLine($"后={begin}");



Console.ReadKey();